/*
 * @Author: c
 * @Date: 2024-01-26 03:17:45
 * @LastEditTime: 2024-01-26 03:18:24
 * @LastEditors: c
 * @Description: 用户购买歌曲关系表
 * @FilePath: \music-web-backend\src\core\music\user_song_paid\entities\user_song_paid.entity.ts
 * https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { Entity, PrimaryColumn } from "typeorm";

@Entity('song_user_paid')
export class UserSongPaid {
    
    @PrimaryColumn({
        type: 'int',
        name: 'song_id',
    })
    songId: number; // 歌曲

    @PrimaryColumn({
        type: 'int',
        name: 'user_id',
    })
    userId: number; // 用户

}